<?php
/**
 * Created by PhpStorm.
 * User: renyi
 * Date: 2017/3/23
 * Time: 下午23:00
 */

namespace App\Helper;


class EnumHelper
{
    const ERROR_OK                          = "2000";
    const ERROR_OK_MESSAGE                  = "返回成功";

    const ERROR_CALCULATOR_ANSWERS_IS_NULL  = "11001";
    const ERROR_CALCULATOR_FIELD_IS_NULL    = "11002";

    const ERROR_NOT_AUTHENTICATED           = 10001;
    const MESSAGE_NOT_AUTHENTICATED         = "无法获得当前用户";

    const ERROR_FAILED                      = "2001";
    const MESSAGE_FAILED                    = "返回失败";

    const ERROR_DATA_EMPTY                  = "2002";
    const MESSAGE_DATA_EMPTY                = "请求数据为空";

    const ERROR_DATA_EXIST                  = "2003";
    const MESSAGE_DATA_EXIST                = "写入数据已存在";

    const ERROR_PARAMETER_ERROR             = "2004";
    const MESSAGE_PARAMETER_ERROR           = "参数错误";

    const ERROR_SAVE_ERROR                  = "2005";
    const ERROR_SAVE_MESSAGE                = "数据保存失败";

    const ERROR_DELETE_ERROR                = "2006";
    const ERROR_DELETE_MESSAGE              = "数据删除失败";

    const ERROR_RECORD_EXIST_ERROR          = "2006";
    const ERROR_RECORD_EXIST_MESSAGE        = "数据已经存在";

    const ERROR_TPL_EXIST_ERROR             = "2007";
    const ERROR_TPL_EXIST_MESSAGE           = "模板名已经存在";

    const ERROR_NON_OK                      = "2010";
    const ERROR_NON_OK_MESSAGE              = "无用户信息，数据返回";

    const ERROR_BASIC_RECORD_NULL           = "2011";
    const ERROR_BASIC_RECORD_NULL_MESSAGE   = "患者购买服务后才能发送问诊单";

    const ERROR_TEAM_FINISH_SERVICE_ERROR   = "2012";
    const ERROR_TEAM_FINISH_SERVICEL_MESSAGE= "确认处理求助并开方后可结束服务";

    const ERROR_NO_REGIST_ERROR             = '2013';
    const ERROR_NO_REGIST_MESSAGE           = '用户未注册';

    const ERROR_NO_PASSWORD_ERROR           = '2014';
    const ERROR_NO_PASSWORD_MESSAGE         = '用户未设置密码';

    const ERROR_NO_USER_ERROR               = '2015';
    const ERROR_NO_USER_MESSAGE             = '无法获取当前用户';

    const ERROR_SMS_ERROR                   = '2017';
    const ERROR_SMS_MESSAGE                 = '验证码错误';

    const ERROR_PASSWORD_ERROR              = '2018';
    const ERROR_PASSWORD_MESSAGE            = '密码错误';

    const ERROR_EXIST_USER_ERROR            = '2019';
    const ERROR_EXIST_USER_MESSAGE          = '用户已经存在';

    const ERROR_TOKEN_ERROR                 = '2020';
    const ERROR_TOKEN_MESSAGE               = 'token错误';

    const ERROR_TOKEN_EXPIRED               = '4000';
    const ERROR_TOKEN_EXPIRED_MESSAGE       = '暂不支持游客模式';
}
